package study.controller;

//import com.study.config.DBConnector;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import study.config.DBConnector;

@RestController
public class TestContro {
//    @GetMapping("/hello")
//    public String testMethod(){
//        return "hahaha Profile";
//    }

    //@Autowired
    @Autowired
    DBConnector dbConnector;

    @GetMapping("/show")
    public  String showDB(){
        dbConnector.configure();
        return  "show DB Profile";
    }
}
